home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / Codex ass dev system v1.10.adf / include / devices / printer.i < prev    next >
Text File  |  1988-09-19  |  7KB  |  172 lines

  1.    IFND  DEVICES_PRINTER_I
  2. DEVICES_PRINTER_I EQU   1
  3. ********************************************************************
  4. *               Commodore-Amiga, Inc.                              *
  5. *               printer.i                                          *
  6. ********************************************************************
  7. ********************************************************************
  8. *
  9. *  printer device command definitions
  10. *
  11. *   Source Control
  12. *   --------------
  13. *   $Header: printer.i,v 1.2 85/10/09 16:16:27 kodiak Exp $
  14. *
  15. *   $Locker:  $
  16. *
  17. ********************************************************************
  18.  
  19.    IFND  EXEC_NODES_I
  20.    INCLUDE  "exec/nodes.i"
  21.    ENDC
  22.  
  23.    IFND  EXEC_LISTS_I
  24.    INCLUDE  "exec/lists.i"
  25.    ENDC
  26.  
  27.    IFND  EXEC_PORTS_I
  28.    INCLUDE  "exec/ports.i"
  29.    ENDC
  30.  
  31.    IFND  EXEC_IO_I
  32.    INCLUDE  "exec/io.i"
  33.    ENDC
  34.  
  35.    DEVINIT
  36.  
  37.    DEVCMD   PRD_RAWWRITE
  38.    DEVCMD   PRD_PRTCOMMAND
  39.    DEVCMD   PRD_DUMPRPORT
  40.  
  41. ;****** printer definitions
  42. aRIS     EQU    0 ; ESCc  reset                       ISO
  43. aRIN     EQU    1 ; ESC#1 initialize                  +++
  44. aIND     EQU    2 ; ESCD  lf                          ISO
  45. aNEL     EQU    3 ; ESCE  return,lf                   ISO
  46. aRI      EQU    4 ; ESCM  reverse lf                  ISO
  47.  
  48. aSGR0    EQU    5 ; ESC[0m normal char set            ISO    
  49. aSGR3    EQU    6 ; ESC[3m italics on                 ISO        
  50. aSGR23   EQU    7 ; ESC[23m italics off               ISO
  51. aSGR4    EQU    8 ; ESC[4m underline on               ISO
  52. aSGR24   EQU    9 ; ESC[24m underline off             ISO
  53. aSGR1    EQU   10 ; ESC[1m boldface on                ISO
  54. aSGR22   EQU   11 ; ESC[22m boldface off              ISO
  55. aSFC     EQU   12 ; SGR30-39  set foreground color    ISO
  56. aSBC     EQU   13 ; SGR40-49  set background color    ISO
  57.  
  58. aSHORP0  EQU   14 ; ESC[0w normal pitch               DEC
  59. aSHORP2  EQU   15 ; ESC[2w elite on                   DEC
  60. aSHORP1  EQU   16 ; ESC[1w elite off                  DEC
  61. aSHORP4  EQU   17 ; ESC[4w condensed fine on          DEC
  62. aSHORP3  EQU   18 ; ESC[3w condensed off              DEC
  63. aSHORP6  EQU   19 ; ESC[6w enlarged on                DEC
  64. aSHORP5  EQU   20 ; ESC[5w enlarged off               DEC
  65.  
  66. aDEN6    EQU   21 ; ESC[6"z shadow print on           DEC (sort of)
  67. aDEN5    EQU   22 ; ESC[5"z shadow print off          DEC
  68. aDEN4    EQU   23 ; ESC[4"z doublestrike on           DEC
  69. aDEN3    EQU   24 ; ESC[3"z doublestrike off          DEC
  70. aDEN2    EQU   25 ; ESC[2"z  NLQ on                   DEC
  71. aDEN1    EQU   26 ; ESC[1"z  NLQ off                  DEC
  72.  
  73. aSUS2    EQU   27 ; ESC[2v superscript on             +++
  74. aSUS1    EQU   28 ; ESC[1v superscript off            +++
  75. aSUS4    EQU   29 ; ESC[4v subscript on               +++
  76. aSUS3    EQU   30 ; ESC[3v subscript off              +++
  77. aSUS0    EQU   31 ; ESC[0v normalize the line         +++
  78. aPLU     EQU   32 ; ESCL  partial line up             ISO
  79. aPLD     EQU   33 ; ESCK  partial line down           ISO
  80.  
  81. aFNT0    EQU   34 ; ESC(B US char set                 DEC
  82. aFNT1    EQU   35 ; ESC(R French char set             DEC
  83. aFNT2    EQU   36 ; ESC(K German char set             DEC
  84. aFNT3    EQU   37 ; ESC(A UK char set                 DEC
  85. aFNT4    EQU   38 ; ESC(E Danish I char set           DEC
  86. aFNT5    EQU   39 ; ESC(H Sweden char set             DEC
  87. aFNT6    EQU   40 ; ESC(Y Italian char set            DEC
  88. aFNT7    EQU   41 ; ESC(Z Spanish char set            DEC
  89. aFNT8    EQU   42 ; ESC(J Japanese char set           +++
  90. aFNT9    EQU   43 ; ESC(6 Norweign char set           DEC
  91. aFNT10   EQU   44 ; ESC(C Danish II char set          +++
  92.                               
  93. aPROP2   EQU   45 ; ESC[2p  proportional on           +++
  94. aPROP1   EQU   46 ; ESC[1p  proportional off          +++
  95. aPROP0   EQU   47 ; ESC[0p  proportional clear        +++
  96. aTSS     EQU   48 ; ESC[n E set proportional offset   ISO
  97. aJFY5    EQU   49 ; ESC[5 F auto left justify         ISO
  98. aJFY7    EQU   50 ; ESC[7 F auto right justiy         ISO
  99. aJFY6    EQU   51 ; ESC[6 F auto full justify         ISO
  100. aJFY0    EQU   52 ; ESC[0 F auto justify off          ISO
  101. aJFY2    EQU   53 ; ESC[2 F  word space(auto center)  ISO (special)
  102. aJFY3    EQU   54 ; ESC[3 F letter space (justify)    ISO (special)
  103.  
  104. aVERP0   EQU   55 ; ESC[0z  1/8" line spacing         +++
  105. aVERP1   EQU   56 ; ESC[1z  1/6" line spacing         +++
  106. aSLPP    EQU   57 ; ESC[nt  set form length n         DEC
  107. aPERF    EQU   58 ; ESC[nq  perf skip n (n>0)         +++
  108. aPERF0   EQU   59 ; ESC[0q  perf skip off             +++
  109.                         
  110. aLMS     EQU   60 ; ESC#9  Left margin set            +++
  111. aRMS     EQU   61 ; ESC#0  Right margin set           +++
  112. aTMS     EQU   62 ; ESC#8  Top margin set             +++
  113. aBMS     EQU   63 ; ESC#2  Bottom marg set            +++
  114. aSTBM    EQU   64 ; ESC[Pn1;Pn2r  T&B margins         DEC
  115. aSLRM    EQU   65 ; ESC[Pn1;Pn2s  L&R margin          DEC
  116. aCAM     EQU   66 ; ESC#3  Clear margins              +++
  117.  
  118. aHTS     EQU   67 ; ESCH    Set horiz tab             ISO
  119. aVTS     EQU   68 ; ESCJ    Set vertical tabs         ISO
  120. aTBC0    EQU   69 ; ESC[0g  Clr horiz tab             ISO
  121. aTBC3    EQU   70 ; ESC[3g  Clear all h tab           ISO
  122. aTBC1    EQU   71 ; ESC[1g  Clr vertical tabs         ISO
  123. aTBC4    EQU   72 ; ESC[4g  Clr all v tabs            ISO
  124. aTBCALL  EQU   73 ; ESC#4   Clr all h & v tabs        +++
  125. aTBSALL  EQU   74 ; ESC#5   Set default tabs          +++
  126. aEXTEND  EQU   75 ; ESC[Pn"x extended commands        +++ 
  127.  
  128.  
  129.  STRUCTURE IOPrtCmdReq,IO_SIZE
  130.     UWORD   io_PrtCommand  ; printer command
  131.     UBYTE   io_Parm0    ; first command parameter
  132.     UBYTE   io_Parm1    ; second command parameter
  133.     UBYTE   io_Parm2    ; third command parameter
  134.     UBYTE   io_Parm3    ; fourth command parameter
  135.     LABEL   iopcr_SIZEOF
  136.  
  137.  STRUCTURE  IODRPReq,IO_SIZE
  138.     APTR    io_RastPort    ; raster port
  139.     APTR    io_ColorMap    ; color map
  140.     ULONG   io_Modes       ; graphics viewport modes
  141.     UWORD   io_SrcX        ; source x origin
  142.     UWORD   io_SrcY        ; source y origin
  143.     UWORD   io_SrcWidth    ; source x width
  144.     UWORD   io_SrcHeight   ; source x height
  145.     LONG    io_DestCols    ; destination x width
  146.     LONG    io_DestRows    ; destination y height
  147.     UWORD   io_Special     ; option flags
  148.     LABEL   iodrpr_SIZEOF
  149.  
  150. SPECIAL_MILCOLS      EQU   $01   ; DestCols specified in 1/1000"
  151. SPECIAL_MILROWS      EQU   $02   ; DestRows specified in 1/1000"
  152. SPECIAL_FULLCOLS     EQU   $04   ; make DestCols maximum possible
  153. SPECIAL_FULLROWS     EQU   $08   ; make DestRows maximum possible
  154. SPECIAL_FRACCOLS     EQU   $10   ; DestCols is fraction of FULLCOLS
  155. SPECIAL_FRACROWS     EQU   $20   ; DestRows is fraction of FULLROWS
  156. SPECIAL_ASPECT       EQU   $80   ; ensure correct aspect ratio
  157. SPECIAL_DENSITYMASK  EQU   $F00  ; masks out density bits
  158. SPECIAL_DENSITY1     EQU   $100  ; lowest res
  159. SPECIAL_DENSITY2     EQU   $200  ; next res
  160. SPECIAL_DENSITY3     EQU   $300  ; next res
  161. SPECIAL_DENSITY4     EQU   $400  ; highest res
  162.  
  163. PDERR_CANCEL         EQU   1  ; user canceled a printer timeout
  164. PDERR_NOTGRAPHICS    EQU   2  ; printer cannot output graphics
  165. PDERR_INVERTHAM      EQU   3  ; cannot invert hold & modify print
  166. PDERR_BADDIMENSION   EQU   4  ; print dimensions illegal
  167. PDERR_DIMENSIONOVFLOW EQU  5  ; print dimensions too large
  168. PDERR_INTERNALMEMORY EQU   6  ; no memory for internal variables
  169. PDERR_BUFFERMEMORY   EQU   7  ; no memory for print buffer
  170.  
  171.    ENDC
  172.